﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QS.Renderer;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using QS.Game.Logic.Physics;
using QS.Game.Logic.Objects.common;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using DPSF;

namespace QS.Logic.Objects
{
    [RendererAttribute(typeof(QSpaceShipRenderer))]
    class QSpaceShip : QPhysicsObject
    {
        public Boolean EgnineIsOn
        {
            get;
            set;
        }

        public override void Load(GraphicsDevice graphicsDevice, ContentManager contentManager)
        {
            base.Load(graphicsDevice, contentManager);
            this.AffectingForces.Add(QObjectFactory.GetInstance(typeof(QSpaceShipControl3D), graphicsDevice, contentManager, this) as QSpaceShipControl3D);
            this.AffectingForces.Add(QObjectFactory.GetInstance(typeof(QFrictionForce), graphicsDevice, contentManager, this) as QFrictionForce);
            //this.AffectingForces.Add(QObjectFactory.GetInstance(typeof(QCenterForce), graphicsDevice, contentManager, this) as QCenterForce);
        }
    }
}
